package com.open.pokergames.base.activity

import com.open.pokergames.comm.repository.cache.LocalCache
import com.open.pokergames.conn.websocket.MessageManager

@Deprecated("")
open abstract class MessageBaseActivity : EventBusTitleBaseActivity() {

    override fun onResume() {
        super.onResume()
        if (!MessageManager.obj().isOpen) {
            MessageManager.obj().start(LocalCache.getLoginUser().user.account)
        }
    }

    override fun onDestroy() {
        super.onDestroy()
        MessageManager.obj().close()
    }
}